
const { apiPreFix } = require('../config').server
const billController = require('../controllers/bill')
module.exports = (router) => {
  // 客户端
  // 发布广告
  router.post(`${apiPreFix}/bill/create`, async  ctx => {
    await billController.create(ctx)
  })
  // 广告列表
  router.post(`${apiPreFix}/bill/billSourceList`, async  ctx => {
    await billController.billSourceList(ctx)
  })
  // 新建任务
  router.post(`${apiPreFix}/bill/createBill`, async  ctx => {
    await billController.createBill(ctx)
  })
}